package com.university.mentalhealthplatform.global.rbac.dto.normal;

import java.util.Set;

public class ButtonDTO {
    private Long id;
    private String name;
    private boolean visible;
    private String description;
    private boolean status;
    private Set<PermissionDTO> permissions;  // 按钮关联的权限



    // 全参构造方法
    public ButtonDTO(Long id, String name,  boolean visible, String description, boolean status, Set<PermissionDTO> permissions) {
        this.id = id;
        this.name = name;
        this.visible = visible;
        this.description = description;
        this.status = status;
        this.permissions = permissions;
    }

    // Getters 和 Setters
    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }


    public boolean isVisible() {
        return visible;
    }

    public void setVisible(boolean visible) {
        this.visible = visible;
    }

    public String getDescription() {
        return description;
    }

    public void setDescription(String description) {
        this.description = description;
    }

    public boolean isStatus() {
        return status;
    }

    public void setStatus(boolean status) {
        this.status = status;
    }

    public Set<PermissionDTO> getPermissions() {
        return permissions;
    }

    public void setPermissions(Set<PermissionDTO> permissions) {
        this.permissions = permissions;
    }
}
